//
//  BufferedPaging.h
//  SimulacraDB
//
//  Created by Andre Cohen on 8/24/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "Paging.h"

@interface BufferedPaging : Paging {
	NSMutableArray *spaces;
	int endLocation;
}

- (void)loadAllPages;
- (RID *)findBlockWithSize:(int)blocks;
- (void)markBlocksUsedFrom:(RID *)location blocks:(int)length;

- (BOOL)isRID:(RID *)rid inRange:(NSRange)range;
- (BOOL)isRID:(RID *)rid pastRange:(NSRange)range;

- (NSString *)description;


@end
